{% extends 'base.html.twig' %}

{% block body %}
    <h1>Order</h1>

    <table>
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ order.id }}</td>
            </tr>
            <tr>
                <th>Tid</th>
                <td>{{ order.tid }}</td>
            </tr>
            <tr>
                <th>Status</th>
                <td>{{ order.status }}</td>
            </tr>
            <tr>
                <th>Buyernick</th>
                <td>{{ order.buyerNick }}</td>
            </tr>
            <tr>
                <th>Payment</th>
                <td>{{ order.payment }}</td>
            </tr>
            <tr>
                <th>Receivername</th>
                <td>{{ order.receiverName }}</td>
            </tr>
            <tr>
                <th>Recevierphone</th>
                <td>{{ order.recevierPhone }}</td>
            </tr>
            <tr>
                <th>Totalfee</th>
                <td>{{ order.totalFee }}</td>
            </tr>
        </tbody>
    </table>

    <ul>
        <li>
            <a href="{{ path('orders_index') }}">Back to the list</a>
        </li>
        <li>
            <a href="{{ path('orders_edit', { 'id': order.id }) }}">Edit</a>
        </li>
        <li>
            {{ form_start(delete_form) }}
                <input type="submit" value="Delete">
            {{ form_end(delete_form) }}
        </li>
    </ul>
{% endblock %}
